define at3_proxy($proxyname,$cache_size=1000,$email,$cache_mem=512,$visible_hostname=$fqdn ) {

  include squid
  
  file { "/etc/squid/squid.conf":
    path => "/etc/squid/squid.conf",      
    ensure => file,
    owner => root,
    group => root,
    mode => 644,
    content => template("at3_proxy/squid.conf/MASTER.erb"),
    require => Package["squid"],
    notify => Service[squid],      
  }

}

class squid {
  package { 'squid':
    ensure => present,
  }
  
  service{'squid':
    enable => true,
    ensure => running,
    hasstatus => true,
    require => Package[squid],
  }
}
